package cool.tianyou.blue.bird.module.synchronize.rest;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Liutianyou
 * @date 2021/10/18 11:36 PM
 */
@RestController
@RequestMapping("/version")
public class VersionController {

  @RequestMapping("/latest-mac.yml")
  public String mac() {
    return "version: 1.0.1\n"
        + "files:\n"
        + "  - url: Blue-Bird-1.0.1-mac.zip\n"
        + "    sha512: pg1iDMeIJMeNAvXUUioINoKM9uMrRc0NBV69pQeeSCFz2fEUN5g5QHVB96NJZ0Z5gw3r4dbUoRHo6iRjB8L0dw==\n"
        + "    size: 77902274\n"
        + "    blockMapSize: 81743\n"
        + "  - url: Blue-Bird-1.0.1.dmg\n"
        + "    sha512: H1E9v8VOu3vXmxVdXdJZAgzk0zh1/giJlv8uw2SvsTYLh0Cy63DQQONyc5Y+jLGVcJUlXw3v2ESviwbM1OFv7A==\n"
        + "    size: 80288909\n"
        + "path: Blue-Bird-1.0.1-mac.zip\n"
        + "sha512: pg1iDMeIJMeNAvXUUioINoKM9uMrRc0NBV69pQeeSCFz2fEUN5g5QHVB96NJZ0Z5gw3r4dbUoRHo6iRjB8L0dw==\n"
        + "releaseDate: '2021-10-19T16:14:43.784Z'\n";
  }


}
